/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javaclientcp3110.View.Component;

import java.util.Vector;
import common.Objects.Category;
import javax.swing.JComboBox;

/**
 * A combo box for categorys.
 * @author Richard Irons
 */
public class CategoryListView extends JComboBox{    

    public CategoryListView() {
    }
    public CategoryListView(Vector<Category> categorys) {
        updateView(categorys);
    }
    public void updateView(Vector<Category> categorys) {
        for (Category category : categorys) {
            addItem(category);
        }
    }
}
